// coding: utf-8
// @Author : lryself
// @Date : 2020/10/25 0:01
// @Software: GoLand

package main

import (
	"fmt"
	"github.com/gin-gonic/gin"
	"net/http"
)

func main() {
	r := gin.Default()
	r.GET("/test", func(context *gin.Context) {
		context.JSON(http.StatusOK, gin.H{
			"message": "测试成功！",
		})
	})
	err:=r.Run(":9000")
	if err!=nil{
		fmt.Println("Error Run!， error:", err)
	}
}